/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.HashMap;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.primefaces.context.RequestContext;

/**
 *
 * @author noha
 */
@ManagedBean(name = "editdialog")
@ViewScoped

public class EditDialogBean {
    public void viewEditCustomized() {
        Map<String,Object> options = new HashMap<String, Object>();
        options.put("modal", true);
        options.put("draggable", false);
        options.put("resizable", false);
        options.put("contentHeight", 360);
        System.out.println("da5allllllllllllllllllllllllllllllllllllllll al view carssssssssssssssss");        
//hint: available options are modal, draggable, resizable, width, height, contentWidth and contentHeight
        RequestContext.getCurrentInstance().openDialog("index3", options, null);
    }
}
